package com.dyna.service;

import com.dyna.bean.CommonsResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
@FeignClient(value = "CLOUD-PROVIDER-PAYMENT")
public interface FeignService {

    @GetMapping("/byid/{id}")
    CommonsResult getById(@PathVariable("id")Integer id);


    @GetMapping("/payment/feign/timeout")
    String paymentFeignTimeOut();
}
